Trimming message id and index name in message loader #lowhangingfruits

Fixes #541