handle &nbsp; when converting text to int