Retrieving string as an array