I got the code to work!
Hello Ray... well I fiddled and fiddled with it until I got the code to work! I needed to define the " - " in location rather than showbegin.
After doing all that and getting it to function, I realized that not every record in my database has a " - " after the location. They all do however have a "," right before the two character state. I realize this code with the strrpos can limit the end of a string by defining a character. But if there is no " - " then it returns an error and passes no information to Priceline (or whatever I choose). So how can I define a "," in the string and then choose infinite characters to the left of the comma and three characters to the right and include the comma in the results.