Check type of args (el) object before trimming