Updated code to account for 0 length strings as well
Updated code to account for 0 length strings as well

Signed-off-by: Ashutosh Saboo <655f922167aeff5f33ff8b8bf85ca9d40be8971e@gmail.com>

cflee/voc,ASP1234/voc,ASP1234/voc,gEt-rIgHt-jR/voc,freakboy3742/voc,pombredanne/voc,gEt-rIgHt-jR/voc,pombredanne/voc,freakboy3742/voc,cflee/voc