You can use the replaceAll()
function.
For your case:
replaceAll("\\s","")
where \s
means any whitespace (such as a space character).
You can use the replaceAll()
function.
For your case:
replaceAll("\\s","")
where \s
means any whitespace (such as a space character).