Method to parse status line