Corrected rubocop rule

Use %Q only for strings that contain both single quotes and double quotes, or
for dynamic strings that contain double quotes.