[EC] Fixed last non-whitespaceChar function,
[EC] Fixed getLastNonWhitespaceChar for reals.