Ray Rahke
expression.filter { it != ' ' }
expression.replace(" ", "")
Javier
remove(“ “)
expression.filterNot(Char::isWhiteSpace)