# Python 2, 51 bytes <!-- language-all: lang-python --> lambda s='lambda s=%r:51/len(s)*s%%s':51/len(s)*s%s Verify it on [Ideone]. [Ideone]: http://ideone.com/Q2M2xp