def addChar(text,char,place): return text[:place] + char + text[place:]
m = 1 n = 2 yourstring = ("L" * m) + yourstring + ("L" * n)