Fixed ignore case

Fixed the replacement for tolower
It was checking the destination, with was empty, instead of the
source...
Also, a bit of header clean up - removed redundant parameter names in
header