Removes std.string.indexOf in favour of std.algorithm.canFind

The use of canFind instead of indexOf is more idiomatic.