Simple function using tr