Replace(String, from_str , to_str )
means: replace all occurrences of from_str in String with to_str .
trim() : Remove the spaces at the beginning and end of the string .
Use replace or replaceAll to remove all spaces in the string (including spaces at the beginning and end)
replae trim
Guess you like
Origin blog.csdn.net/qq_40145879/article/details/107480505
Ranking