fixed a bug with capitalizing the word before ref
Merge pull request #5 from kapravel/master

fixed a bug with capitalizing the word before ref