isArray and trim utilities.