Fixed some querying

Works for StartsWith, EndsWith, ToUpper, ToLower and Length