-fixed bug with spaces turning regExpRestriction off when they shouldn't, and some cleanup