should probably update ` if data.startswith('$'):` to `if "$" in data:` for my example as well.