Top "Trim" questions

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

Adding whitespace in Java

There is a class trim() to remove white spaces, how about adding/padding? Note: " " is not the solution.

java whitespace space trim spaces
How to remove whitespace from a string in typescript?

In my angular 5 project, with typescript I am using the .trim() function on a string like this, But it is …

angular typescript trim
Best way to verify string is empty or null

i am sure this must have been asked before in different ways - as isEmptyOrNull is so common yet people …

java regex string trim is-empty
SQL Server TRIM character

I have the following string: 'BOB*', how do I trim the * so it shows up as 'BOB' I tried …

sql character trim
How can I trim all strings in an Array?

If I have this array: array(" hey ", "bla ", " test"); and I want to trim all of them, How can I …

php arrays trim
How can I split and trim a string into parts all on one line?

I want to split this line: string line = "First Name ; string ; firstName"; into an array of their trimmed versions: "First …

c# .net split trim
How to extend C# built-in types, like String?

Greetings everyone... I need to Trim a String. But I want to remove all the repeated blank spaces within the …

c# string extension-methods trim
How can I explode and trim whitespace?

For example, I would like to create an array from the elements in this string: $str = 'red, green, blue ,orange'; …

php explode trim higher-order-functions
Trim leading or trailing characters from a string?

How can I trim the leading or trailing characters from a string in java? For example, the slash character "/" - …

java trim
Php how to remove any last commas

Example output 1. test,test,test,test,test, 2. test,test,test,, 3. test,test,,, 4. test,,,,, I tried use implode according to my …

php trim