Replace char[] with string

Fixes #30.
Rejoice! The code is much cleaner now.