Minor bug fix on separate string functions