Now handles white space at the end of component names
Converts ports lables [1:5] into [1,2,3,4,5]