Coding stype for insertAtCaret
Use type safe comparing
Remove extra ,