Pasting filters into issue search field doesn't always recognize tokens
### Summary
When pasting multiple filter criteria into the issue search field, some of them are not turned into tokens.
### Steps to reproduce
- [open issues](https://gitlab.com/gitlab-org/gitlab-ce/issues)
- paste `label:~2fa label:~bug label:~2fa label:~bug label:~2fa label:~bug `
### What is the current *bug* behavior?
Only some labels are turned into tokens:

Also all whitespace between the labels is moved to the end of the input.
### What is the expected *correct* behavior?
- all labels are turned into tokens
- no trailing whitespace
issue