Fix typo
Add simple spec
Rewrite regular expression