setCaretPosition with object instead of string.