Removes trailing whitespaces