Fix strings containing a ; at the end

Closes #11.