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

The use of canFind instead of indexOf appears to be a more idiomatic representation of the situation.