use isString helper to check for string type