Well you could:
1.Filter the string in a serverscript
2.Use a remote/bindable event that fires to the server, after the .FocusLost event was triggered, to get the filtered string
3.Now your string is filtered, you can do whatever you want with it in your local script