Added method parse string