fixing isregexp