Write a function that converts a string into star shorthand. If a character is repeated n times, convert it into character*n.
toStarShorthand("abbccc") ➞ "ab*2c*3"
toStarShorthand("77777geff") ➞ "7*5gef*2"
toStarShorthand("abc") ➞ "abc"
toStarShorthand("") ➞ ""