Java Get String Length Python Function Example Code