Top "Trim" questions

Trimming refers to the manipulation of a text string to remove leading and/or trailing whitespace (and/or ASCII control characters).

How do I remove leading whitespace in Python?

I have a text string that starts with a number of spaces, varying between 2 & 4. What is the simplest way …

python string whitespace trim
How to trim a string in SQL Server before 2017?

In SQL Server 2017, you can use this syntax, but not in earlier versions: SELECT Name = TRIM(Name) FROM dbo.Customer;

sql sql-server trim
How can I trim leading and trailing white space?

I am having some troubles with leading and trailing white space in a data.frame. For example, I like to …

r whitespace trim removing-whitespace r-faq
Fastest way to remove first char in a String

Say we have the following string string data= "/temp string"; If we want to remove the first character / we can …

c# string substring performance trim
String strip() for JavaScript?

What's a clean and efficient JavaScript implementation to strip leading and trailing spaces from a string? For example: " dog" "dog " " …

javascript trim strip
How to remove all white space from the beginning or end of a string?

How can I remove all white space from the beginning and end of a string? Like so: "hello" returns "hello" "…

c# string trim removing-whitespace
How to use a TRIM function in SQL Server

I cannot get this TRIM code to work SELECT dbo.COL_V_Cost_GEMS_Detail.TNG_SYS_NR AS [EHP …

sql sql-server trim
How to trim a string to N chars in Javascript?

How can I, using Javascript, make a function that will trim string passed as argument, to a specified length, also …

javascript string trim
How many spaces will Java String.trim() remove?

In Java, I have a String like this: " content ". Will String.trim() remove all spaces on these sides or just …

java string trim
.trim() in JavaScript not working in IE

I tried to apply .trim() to a string in one of my JavaScript programs. It's working fine under Mozilla, but …

javascript internet-explorer trim