Checks the input string by custom function and add to the results if passed the validation