tempstr = [tempstr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; //去除掉首尾的空白字符和换行字符
tempstr = [tempstr stringByReplacingOccurrencesOfString:@" " withString:@""];
tempstr = [tempstr stringByReplacingOccurrencesOfString:@"\n" withString:@""];