remove dot at the end when hitting strg + space