Properly format strings with multiple new lines

- Also added method where padding string can be specified
- Added check for that output format string is specified
Tests for formatAndIndent method
Fix so that IDE formatter doesn't reformat comment