#Python - <strike>114</strike> 113 characters from sys import * s="" for f in argv[1]: if ord(f) in range(65,91): s+=")" else: s+=("("+f) print s Abuses python's indentation parser to use one space for a full tab, five for two tabs. **Edit 1** - saved an unneeded space in the range() function