Removed debug, added check for 0 length string