Convert String Into Array In Typescript