Report question

Question: Javascript and regex: remove space after the last word in a string