Potential problem with GetNthChar() fixed.