Reliably parse filters option

Currently if 'filters' option is specified with spaces like this:
`<input type="file" filters="onlyImages, queueLimit"/>`
 then second filter is not used.
I added filter name trim, so it can correctly find filter by name.