Map string platform to enum