make sure string to pad is actually a string