used query trim instead of contains of jasmine