Primitive predicate string::prefix

Returns the substring of the receiver ending at the given offset

string prefix(int endPos)