text = "Hello,How,Are,You,Today" tokens = text.split(',') print ('.'.join(tokens))