Justify at both sides
title = "Love's Labours Lost" title.rjust(20, "-").ljust(21, "-") # => "-Love's Labours Lost-"