String methods extracted into separate StringExtensions class