Added method to parse string to long value.