Added case sensitivity

Added support for W and w to both work for hostname.