Fixes issues with strings and exceptions