Terminate strings from sscanf