Using Try method to get appropriate parser