Remove whitespace from last char