changes messages to shorter length