finished off string formatting for templates