changed nested if chain to more appropriate switch
changed nested if chain to more appropriate switch

This project started in java 6, so the ability to switch over string
literals was new in 7 and went by unnoticed. Glad to get a small
performance gain and a lot of legibility over this change.

JustinRisch/GoIP