remove carriage returen and multiple whtiespaces from resource string
value