You can parse the string before passing it to your query and remove the commas with the built-in Replace function, but how are you going to write a filter that can handle a variable number of integers?
Are you going to limit it to three possible searches? What happens if I write 1,2,3,4,5?