3 ms·Fairly elegant code. Using a library that splits the line into words makes it pretty simple.by ape4 7y agoFairly elegant code. Using a library that splits the line into words makes it pretty simple.