BangFormat ignores strings; fixes #289

This prevents BangFormat from complaining about `!` occurrences inside strings of various kinds (content, attributes, variables).

The revision itself was pretty simple, but I also had to divide up methods to satisfy rubocop.