in the registration, you should be using a select list for the states, and populate the select list with the correct abbreviation rather than letting the user enter the state. letting the user enter the abbreviation, they may not even use ca, they may end up using cal, then it will fail the tax rule whether you change case or not.