id parsing for string