Require string type for .trim() operations