Use built in string repeating capabilities with `*`
Code refactor

* Add support for xml declarations
* Structured for formatting additional types later on (like json)