parse component string