Strips all terminal carriage returns and linefeeds from the given string, and returns the stripped string.