private String formatString(final String s){
  if (s.equals(newLine)) {
    return s;
  }
  return String.format("[%s]: %s",timestamp(),s);
}

private String formatString ( final String s ) { if ( s . equals ( newLine ) ) { return s ; } return String . format ( "[%s]: %s" , timestamp ( ) , s ) ; }
formats the given message with the timestamp appended to the front .
