// optionaly check if prefix already exists
const string = 'localhost:8080'
!string.startsWith('http://') ? 'http://localhost:8080' : ''
const newString = `http://${string}`
const name = 'Matt Damon'
const [first, last] = name.split(' ')
const string = 'http://localhost:8080'
const newString = string.replace('http://', '')