Refactor update object with field-value
Strip newlines from end of input-field

Hack for Vim