Added insertAtCaret