Java String And Array Methods In Typescript Map Iteration In Apex