Strip keyword of trailing whitespace before searching. Fixes #49