Added basic string functions and moved mem functions