Fixed .strip method being called to a possible nil value