def sanitizeStr(value):
 return getUnicode(value).replace('\n', ' ').replace('\r', '')

def sanitizeStr ( value ) : return getUnicode ( value ) . replace ( '\n' , ' ' ) . replace ( '\r' , '' )
sanitizes string value in respect to newline and line-feed characters .