update
use underscore.string instead of indexOf