fixed split string -- needed to pass pointer to pointer