made string_to_tuple private method