Make sure the value is not None before strip