Reducing String duplication in Ruby | Hacker News Reader