Code style changes to contains() method

Travis CI was failing because it's very pedantic