handle dupe category names by trimming and lowercasing
explicitly set data as global
put name trimmer in a function
Merge pull request #7 from bnchdrff/gh-pages

fix dupe categories