Main issue now seems to be that Split is not putting all the different keys into separate array elements. $aColors[0] contains all of the keys one after another delimited by CRLF