messageElement should always be a string, I don't understand why this explicit call to toString() is here, could you please clarify?