Avoid duplicates messages on fast typing and enter pressing