Remove double character injection from auto-field-focus code