moved newline to messageobject
rearranged code to avoid useless re-joining
renamed message to better reflect function
moved static string literal into a messageobject