String extension refatoring