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