refactoring: extract constant

* also optimize append for character only