Added isRegExp to conversion