trim ws for consistency