added simple string error checking for strings with missing " in the end