Parse attributes in key val pairs