Added complex string parsing