Using the Event Recorder to record field entry (in this case username/password authentication) does not create code with the entire string inside one set of double quotes, but splits it across lines
e.g.
{ type: "type", target: "textfield[name="login_password"] => input", text: "pas", caret: 0 },
{ type: "type", target: "textfield[name="login_password"] => input", text: "sword", caret: 3 },