tighten regexp and move lower-case to gethost
possible speedup for -union