String length extensions

Good point, added checks for null in all methods.