String padding function with left, right, and both options. Also includes padStart and padEnd pollyfills, with padBoth as a bonus.