Implement trancate command