removing unused TempStr variable