Question : remove white spaces
Answered by : muhammad-khizar-hayat
"hello world".replace(/\s/g, "");
Source : https://stackoverflow.com/questions/10800355/remove-whitespaces-inside-a-string-in-javascript | Last Update : Sun, 24 Oct 21
Question : Remove whitespace from str
Answered by : outstanding-opossum-74rx61vwtnk0
name = name.strip()
Source : | Last Update : Fri, 22 Apr 22
Question : remove whitespaces
Answered by : akash-kumar-h078bu9hbq9s
//Extenion function
fun String.removeWhitespaces() = replace(" ", "")
// Uses
var str = "This is an example text".removeWhitespaces()
println(str)
Source : https://stackoverflow.com/questions/60028103/how-to-remove-all-the-whitespaces-from-a-string-in-kotlin | Last Update : Wed, 04 Aug 21