pad function do nothing when string is empty