Powershell Check If String Variable Is Optimized