Use start-of-string instead of word boundaries
Add specs for stat generator