Create Shortest period of a string