Improved parsing thread uids