Minor update to logic for message trimming
Remove message (not really needed, it is only JS).