pub fn trim_lines(output: String) -> String
Remove whitespace from the end of each line in the provided string.