Fixed a null pointer bug that occured for empty strings