Smarter regex check (is_regex)
trim input before mathing (is_regexp improvement)
Merge pull request #5 from AlexanderC/master

Fixed issue with spaces in regexp