def clean(line):
    """
    Extract elements from line, add fixed format
    :param line: checked line(string)
    :return: String with elements
    """
    result = ''
    for element in line.split(';'):
        result += element.strip(' ') + ';'
    if result[0] == ';':
        result = result[1:]
    return result[:-3] + '\n'