Added test revealing a problem with indexing of a String returned by an operation
Added fix for indexing of a string returned by an operation