refactor method parse Note from string