Fixed some string slicing issues