string fixes

implements fromIndex for string.indexOf and string.lastIndexOf