Changed explicit string comparison to use string.equals and ignorecase