is_lowercase isn't work in osx

Hi, i modified is_lowercase function, and now works in osx.

Best regards,