ExpandURL - fixed bug, now case-sensitive, added appropriate tests