Code to fulfill the empty string edge case