handles blank strings of input
bumped version