def METHOD_NAME(self, s, space=False):
    d_tab = s.replace("\t", "")
    d_newl = d_tab.replace("\n", "")
    if not space:
        clean_s = d_newl.replace("\r", "")
    else:
        clean_s = d_newl.replace("\r", " ")
    return clean_s