Remove trailing space from txt string
Remove trailing space from txt string

Fixes #6674

Signed-off-by: Oscar Rydhé <2b3e17a7d6f527397936131db0874b14455019f5@sony.com>

StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery