Refactored try_parse methods