Filter Parameter from Extension?

I make a custom code to get parameter is not read only and storage type is String. But the result including parameter make from extension. So how i can filter these parameter ?? I attached picture below.

Thanks !!

P/S : We can use method of string to filter not contain string “Extension” to remove them. But i want to find a best way to do this.