fixed timestamp new line problem with sub-par string erase, can be improved.