updated string equal checks

Updated string cheks to normal C# way instead of java way