How can I convert an Int to a 7-character long String, so that 123 is turned into \"0000123\"?
Int
String
123
\"0000123\"
def leftPad(s: String, len: Int, elem: Char): String = { elem.toString * (len - s.length()) + s }