def addInteger2String(value, val_len, front):
    """
    Function for parsing a integer into a correct string format. Front works as the parser character which tells the program how the string has to be formatted.

    **Examples**::

        >> addInteger2String(3, 5, 0)
            "00003"

    :param int value: integer that will be formatted
    :param int val_len: int on how long the string needs to be
    :param str front: formatting character
    :return: formatted string
    :raises: ValueError
    """

    if value is None:
        return val_len * " "

    string = ""

    if len(str(value)) > val_len:
        raise ValueError

    parser = "{:" + front + str(val_len) + "d}"
    string += parser.format(value)

    return string