Allow \ and $ in isNumeric function