from typing import Union
import string


def _strip_unwanted_chars(price: Union[int, str]) -> str:
  """Returns price text with all unnecessary chars stripped (nonnumeric etc).

  Examples:
    "100" should return "100"
    "100 yen" should return "100"
    "10,000" should return "10000"

  Args:
    price: The raw value of the price data.

  Returns:
    String that represents the price with currency and other unnecessary
    punctuation removed.
  """
  return ''.join(char for char in str(price) if char in string.digits)