Implemented workaround for PEx problem in MCU10.6 with strings having spaces at the end.