Ah, passing test! I was returning the length, not the padded string.