trying to get it to detect time between characters