Improve add message function to insert space before template Item if "needed"