I ended up just adding it to keys and print it out at the end of the line. Might want to consider Array#compact and Array#join.