hostname replacement is case insensitive