Cleanup pty variable names