moved displayDurationForString into public scope