Fixed string validation to constants