replace all the non-digit characters