Trim trailing white spaces