modify replaceText() function to handle the colon picker
modify replaceText() function to handle the colon picker

* replaceText looks at everything before the selection - and replaces a
colon followed by a non-space character at the end of the string
* this also works when inserting a colon in the middle text of an input

needim/wdt-emoji-bundle,needim/wdt-emoji-bundle