Change '==' & '!=' comparisons to '===' & '!=='

As requested by @Kondou-ger
Fix rename & copy functions