If a space character is at either end of the input string splitting it
procuces an empty string that matches everything.
Allow single character words as there are is a single character tag: `x`
Also use the `input` event instead of `keyup` and addEventlistener instead
of setting the onload / onchange properties.
And handle space character encoded as `+` in query string correctly.