Fixed bug caused by missing string.strip method