Chomp newlines except for object_contents