Update ResourceParser.cs

minor changes