Only strip specific characters from numeric input