Bug#5970 fix trim string in activity