How can I remove only the last whitespace (if there is any) from the user input? example:
var str = "This is it ";
How can I remove the last like 1-4 whitespaces but still keep the first 2 whitespace (between this, is and it)
Question solved - thanks a lot!