NSString: trim, lines, and split