Changed hardcoded string lengths to strlen("...") for clarity.

Strings being checked are still hard-coded but this makes the code clearer and reduces the chance of an error being made through missing a "magic number" change if the argument string being checked is changed for any reason.