String.slice - handled negative startIndex