Malformed Strings

Updated the handling of malformed string to return so of the simple to
diagnose issues.