trim newlines from file values