removed string split as not required in this simplified solution