Trailing spaces are removed.