stripped whitespace before checking word against array