Fix item name validation in firefox