numeric_only function - removes any non-numeric characters from a string