Fixes getString

Resolves #2766