How could I optimize this code? I need to do it in all 50 states, and in each state the text changes so I would like to know if there is another way than adding fifty ifs co