Rob,
1. As far as my testing has shown the following should work to take care of the city capitalization issue.
At or about line 168:
Change: This
Code:
if($myfield == $value){
to this
Code:
if(strtolower($myfield) == strtolower($value)){
From what I have seen that works.
If it is not working for you then I will need a more specific example.
LadyHLG