Updated keyword sniffing to remove whitespace