Strip trailing newline characters from text

strip(text)

Arguments

text

text to strip