Hi,
If you are very confident that the symbol # is 'Hash' or 'Horizontal tab' (even tab and new lines are represented by symbol '#') and that the symbol will appear only in the end as in this example. Then do the following:
1. Replace '#' with space. ( In case of horizontal tab, Replace cl_abap_char_utilities=>horizontal_tab with space).
2. condense
Regards,
Kartik