reduceChars()

reduceChars has two strings a and b as parameters and returns only those characters of a that are part of b:

 

reduceChars("race result 12 software 2020"; "0123456789") - returns 122020