fix, empty string arguments lead to an index out of range panic

An empty string argument leads to a panic. Kind of funny that this was not tested.