Fix measureChar and measureString

Closes #137