## Python, 44 bytes <!-- language: lang-py --> lambda s:s[:-1]+" /\.\/"[ord(s[-1])%10%3::3] Replaces the last character with the correspond set of two characters. [ideone link](http://ideone.com/IPVvuI)