new algorithm veryfying sentence ending char