value = "123abc" # Contains non-numeric characters value = value.strip() # Remove non-numeric characters