Update README.md

added error checking for string length