Refactored results string processing.