Added parser of initial string to parts according to input format