Input pattern now handles slashes better