EditBox: Check text content before being sent to cpp