This would access invalid memory if a string of length 1,2,3 was passed.