LOQSANSUtility: complete correction MAC OS

python string::replace returns the string, does not modify the input.

re #8156
Merge branch 'bugfix/8156_assign_processed_data' into develop