Remove 2 offences detected by rubocop

Remove offences detected by rubocop
- Avoid using {...} for multi-line blocks.
- Use %w or %W for array of words.

Thanks @yaauie to point it out.