Trim an unnecessary whitespace