@staticmethod
def _scaper(input_string):
    """Adds the required scape characters to the format file.
        :param input_string: Value before scaping
        :type input_string: str
        :return: Scaped string
        """
    scaped_string = input_string.replace('"', '\\"').replace("'", "\\'"
        ).replace('\r', '\\r').replace('\n', '\\n')
    return scaped_string
