# padBoth #### The padBoth method, padding both sides of a string with another string until the final string reaches a desired length ### Example#1 ```javascript import JStr from "@akcybex/jstr"; const result = JStr.of("hello").padBoth(10).toString(); console.log(result); // Outputs: ' hello ' ``` ### Example#2 ```javascript import JStr from "@akcybex/jstr"; const result = JStr.of("hello").padBoth(10, "-").toString(); console.log(result); // Outputs: '--hello---' ``` ### Example#3 ```javascript import JStr from "@akcybex/jstr"; const result = JStr.padBoth("hello", 3); console.log(result); // Outputs: 'hello' ```