minor fix for GetRidOfChars program