added static method `string.pad`