Testing for the nil value of "" rather than doing a len() would be preferred.