Update All periods of a string