added string slicing