LPS-39780 Avoid unnecessary temp String creation