Whilst it should be impossible to get here I think we should be returning an empty string here rather than null - as people often echo the contents of the input