use regex to remove all non alphanumeric characters in input