space appears in `object`, added try and except for the match for
further development
TODO need more test on the regular expression