String.leftpad(len,string)
>>> var str = "Foo"; >>> str.leftpad(5,"#"); "##Foo" >>> str.leftpad(10,"."); ".......Foo"