str.trim() only trims the trailing spaces at the beginning and end. The other solution strips out all the spaces from everywhere in the string.
確定! 回上一頁