minor changes:

- change all "str" to 'str'
- adds parenthesis to methods
- whitespace alignments
- changed or to ||
- changes for x in loop to loop.each do |x|
- minor change to view style