cleanup

if statement shrinking and breaking best practices (bad!) to not use as
many variables in time_string