Added trun again due to cut and rev not being standard shell commands in iOS