Tweak the replacement of colons.
Make sure that there are no trailing whitspaces on tokens before appending "* ".