Fixed error in String.pad()