convert string to array in angular 6