smaller indent, proper strip(), for instead of while