removed sub key word matches during category detection
and handled null and empty string