Increased len by 1 so the caret is at the end #1