def _errorReplaceChars(value):
 retVal = value
 if value:
  retVal = retVal.replace(kb.chars.space, ' ').replace(kb.chars.dollar, '$').replace(kb.chars.at, '@').replace(kb.chars.hash_, '#')
 return retVal

def _errorReplaceChars ( value ) : retVal = value if value : retVal = retVal . replace ( kb . chars . space , ' ' ) . replace ( kb . chars . dollar , '$' ) . replace ( kb . chars . at , '@' ) . replace ( kb . chars . hash_ , '#' ) return retVal
restores safely replaced characters .