pad a binary string with leading zeros (or modify to pad other strings with other things)