Make createHorizLine() more flexible in printing different symbols