fix a bug that could miss a character when finding a emotion.

fix a bug that could miss a character when finding a emotion.

Signed-off-by: Ray Allen <ray@ray-Lenovo-IdeaPad-S400.(none)>