Consume the space before the platform name as soon as possible instead of including it in the comparison.