Removed redundant .trim (already handled with regex)