def addString2String(value, val_len, front):
    """
    Function for parsing a string into correct format. Front works as the parser character which tells how the string has to be formatted. Only formatters you can give for the function are '<' and '>'.
    
    **Examples**::

        >> add_string_to_string("test", 6, '<')
            "test  "
    
    :param str value: string value 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 = ""
    parser = "{:" + front + str(val_len) + "s}"

    if len(value) > val_len:
        raise ValueError
    
    string += parser.format(value)

    return string