def clean_string(string):
    '\n    Cleans the string before creating a GraphQL query. `\n`, `\\`, `\r`, etc.. cause issues.\n    :param string: String that needs to be formatted\n    :return: Formatted string compatible with GraphQL Query.\n    '
    cleaned_string = str(string).replace('\n', ' ').replace('"', ' ').replace(
        '\\', '').replace('\r', '')
    return cleaned_string
