added padLeft and padRight to string