How to remove contiguous spaces in a string?
I'm trying to create a function that erase doubles spaces in a string.
Such as "My name is Marcus" To "My name is Marcus"
Using only Arrays and the split(). Don't want to use regex and regular expression.
Can this be done?
0 comments:
Post a Comment