Update string.py

length between greater than 3 char and less than 6 char.