Realized this was about to introduce a bad bug

lpad(str, x, y) will truncate str if it is shorter than x. Also, y has to be
a string, not an ineger...