if asterisk is last char or first char, the data is successfully truncated
now if asterisk is middle char, it also works
added three more scenarios to work on
renamed first version to reflect it's a stupid one, just to exercise the basics of Python language
cleaned a lot of duplication, added color ouput formatting to terminal