Added a null terminator check

Without this check the comparison of the String "Hello World!" and the flash String "Hello World!something" would return 1.