def sanitize_strings(txt):
    """
    Removes newlines from a piece of text
    :param txt: a string.
    :return: a string without new lines.
    """
    if not txt:
        return ""
    if len(txt) > 0:
        return "".join(txt.splitlines())
    else:
        return ""