# Reusable helper module: utils/string_helper.py
def clean_currency(raw_price: str) -> float:
return float(raw_price.replace("$", "").strip())# Importing in page or test files:
from utils.string_helper import clean_currency
import datetime as dt
price = clean_currency(" $49.99 ")