ColorStr type constraint is not working