#NEWLINE# def fixFormatting( s , spaceToken ) : #NEWLINE# #INDENT# '\n\tSpecial character fix for filesystem paths.\n\t' #NEWLINE# for i in string . punctuation : #NEWLINE# #INDENT# if ( ( i != '-' ) and ( spaceToken != spaceToken ) ) : #NEWLINE# #INDENT# s = s . replace ( i , '' ) #NEWLINE# #UNINDENT# #UNINDENT# return s . lower ( ) . lstrip ( spaceToken ) . strip ( ) . replace ( ' ' , spaceToken )