better platform name validation