Merge pull request #1477 from RosettaCommons/everyday847/DMS_valgrind Avoid accessing the -1st position of a string