add rubocop and take care of string literals
rubocop redundant self
Revert "rubocop redundant self"

This reverts commit c90316c417613a9a217f8888a418bac0417ce937.
rubocp auto correct
line length rubocop
single if line rubocop
useless assignment rubocop
assignment in if...rubocop