( begin auto-generated from trim.xml ) Removes whitespace characters from the beginning and end of a String. In addition to standard whitespace characters such as space, carriage return, and tab, this function also removes the Unicode "nbsp" character. ( end auto-generated ) @webref data:string_fu
(String str)
| 9065 | * @see PApplet#join(String[], char) |
| 9066 | */ |
| 9067 | static public String trim(String str) { |
| 9068 | if (str == null) { |
| 9069 | return null; |
| 9070 | } |
| 9071 | return str.replace('\u00A0', ' ').trim(); |
| 9072 | } |
| 9073 | |
| 9074 | |
| 9075 | /** |
no test coverage detected