you can use sscanf